package com.github.phoenics.militia.bazookaFx.model;

import javafx.beans.property.*;

/**
 * @author Phoenics Chow
 * on 2019年02月08日
 */
public class EntityPropertyModel implements IModel{
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(EntityPropertyModel.class);

    @Override
    public void clear() {

    }
    private LongProperty id=new SimpleLongProperty();
    private LongProperty tableColumnId=new SimpleLongProperty();
    private BooleanProperty isNullable=new SimpleBooleanProperty();
    private StringProperty propertyName=new SimpleStringProperty();
    private StringProperty propertyCnName=new SimpleStringProperty();
    private StringProperty propertyDataType=new SimpleStringProperty();
    private StringProperty dataFormat=new SimpleStringProperty();
    private StringProperty propertyComment=new SimpleStringProperty();


    public long getId() {
        return id.get();
    }

    public LongProperty idProperty() {
        return id;
    }

    public void setId(long id) {
        this.id.set(id);
    }

    public long getTableColumnId() {
        return tableColumnId.get();
    }

    public LongProperty tableColumnIdProperty() {
        return tableColumnId;
    }

    public void setTableColumnId(long tableColumnId) {
        this.tableColumnId.set(tableColumnId);
    }

    public boolean isIsNullable() {
        return isNullable.get();
    }

    public BooleanProperty isNullableProperty() {
        return isNullable;
    }

    public void setIsNullable(boolean isNullable) {
        this.isNullable.set(isNullable);
    }

    public String getPropertyName() {
        return propertyName.get();
    }

    public StringProperty propertyNameProperty() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName.set(propertyName);
    }

    public String getPropertyCnName() {
        return propertyCnName.get();
    }

    public StringProperty propertyCnNameProperty() {
        return propertyCnName;
    }

    public void setPropertyCnName(String propertyCnName) {
        this.propertyCnName.set(propertyCnName);
    }

    public String getPropertyDataType() {
        return propertyDataType.get();
    }

    public StringProperty propertyDataTypeProperty() {
        return propertyDataType;
    }

    public void setPropertyDataType(String propertyDataType) {
        this.propertyDataType.set(propertyDataType);
    }

    public String getDataFormat() {
        return dataFormat.get();
    }

    public StringProperty dataFormatProperty() {
        return dataFormat;
    }

    public void setDataFormat(String dataFormat) {
        this.dataFormat.set(dataFormat);
    }

    public String getPropertyComment() {
        return propertyComment.get();
    }

    public StringProperty propertyCommentProperty() {
        return propertyComment;
    }

    public void setPropertyComment(String propertyComment) {
        this.propertyComment.set(propertyComment);
    }
}
